#ifndef _BOX_H_
#define _BOX_H_

#include <assert.h>
#include "Rayon.h"
#include "Intersection.h"
#include "Plan.h"
#include "Point.h"

class Boite : public Objet{
  public:
    Boite() { }
    Boite(float xMin, float xMax,float yMin, float yMax,float zMin, float zMax);
    Boite(Point pMin, Point pMax);
	bool intersection(Rayon &r, Intersection &i);

	Point getPointMin();
	Point getPointMax();
	void setPointMin(Point &p);
	void setPointMax(Point &p);
private: 
	float xMin, xMax, yMin, yMax, zMin, zMax;
	Plan pxMin, pxMax, pyMin, pyMax, pzMin, pzMax;
	Point pointMin, pointMax;
};

#endif // _BOX_H_
